/* eslint-disable no-unused-vars */
import Mock from 'mockjs'

const mock = Mock.mock

export default [
  {
    url: '/mock-api/customer/list',
    type: 'get',
    response: (config) => {
      return mock({
        code: 200,
        data: {
          page: 1,
          limit: 20,
          total: 222,
          'list|20': [
            {
              'name|1': ['张三', '李四', '王五', '赵六', '田七'],
              phone: '@integer(1000000000, 2000000000)',
              id: '@id',
              day: '@integer(0, 365)',
              marketName: '勾庄批发市场',
              province: '浙江省',
              city: '杭州市',
              area: '萧山区',
              address: '勾庄批发市场002号',
              bDate: '@datetime("yyyy-MM-dd")',
              eDate: '@datetime("yyyy-MM-dd")',
              'isEnd|1-2': 1,
              'isPay|1-2': 1
            }
          ]
        },
        message: 'success'
      })
    }
  }
]
